#ifndef CLEARVIEW_H
#define CLEARVIEW_H

#include <QGraphicsView>
#include <QTimer>
class ImageItem;

class ClearView : public QGraphicsView
{
    Q_OBJECT
public:
    explicit ClearView(QWidget *parent = 0);
    ~ClearView()
    {
        delete m_Scene;
    }

    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);

public:
    QGraphicsScene*         m_Scene;

    ImageItem*              m_bgItem;
    ImageItem*              m_bgItem1;
    ImageItem*              m_backItem;
    ImageItem*              m_textItem;

    QImage*                 m_bgImage;
    QTimer                  m_timer;
    float                   m_oldy;
signals:
    void back();
public slots:
    void AutoPlay();
};

#endif // CLEARVIEW_H
